// Copyright (c) 2021 CINN Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#pragma once

#include <string>
#include <vector>

#include "paddle/utils/flat_hash_map.h"

namespace cinn {
namespace hlir {
namespace pe {

void InputX86Param(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data,
    const std::string &key,
    const paddle::flat_hash_map<std::string, std::vector<int>> &schedule_data);

paddle::flat_hash_map<std::string,
                      paddle::flat_hash_map<std::string, std::vector<int>>>
CreateX86Params();
void LoadResNet18Params(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadResNet50Params(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadMobileNetV1Params(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadMobileNetV2Params(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadFaceDetParams(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadEfficientNetParams(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);
void LoadSqueezeNetParams(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);

void CreateX86Params(
    paddle::flat_hash_map<std::string,
                          paddle::flat_hash_map<std::string, std::vector<int>>>
        *model_data);

}  // namespace pe
}  // namespace hlir
}  // namespace cinn
